<html>
 <head>
    <title>[var.TITLE]</title>
    <link href="[var.ROOT_CSS_DIR]/main.css" rel="STYLESHEET" type="text/css" charset="iso-8859-1" hreflang="en-us">
    <link href="[var.ROOT_CSS_DIR]/facet/style.css" rel="STYLESHEET" type="text/css" charset="iso-8859-1" hreflang="en-us">
    <script type="text/javascript" src="[var.ROOT_DIR]js/common.js"></script>
    <script type="text/javascript" src="[var.ROOT_DIR]js/doiMenuDOM.js"></script>
    <script type="text/javascript" src="[var.ROOT_DIR]js/functions.js"></script>
    <script type="text/javascript" src="[var.ROOT_DIR]js/jsmenu.php"></script>
    <script type="text/javascript" src="[var.ROOT_DIR]js/jsmenu.cfg"></script>
    <script type="text/javascript" src="[var.ROOT_DIR]js/jsformgrid.php?session=[var.SessionVar]"></script>
    <script type="text/javascript" src="[var.ROOT_DIR]js/jsmasks.js"></script>
    <script type="text/javascript" src="[var.ROOT_DIR]js/jsverify.php?session=[var.SessionVar]"></script>
    <script type="text/javascript" src="[var.ROOT_DIR]js/jsinit.php?session=[var.SessionVar]"></script>
    <script type="text/javascript" src="[var.ROOT_DIR]js/jquery.min.js"></script>
 </head>
 <body bgcolor="FFFFFF" topmargin="0" leftmargin="0" marginheight="0" marginwidth="0"> 
    <table border="0" cellspacing="0" cellpadding="0" width="100%" align="[var.POSITION]">
        <tr>
            <td>[tbs_include.onshow;file=[var.HTMLHeader];getob;]</td>
        </tr>
        <tr>
            <td>
            <table border="0" cellspacing="0" cellpadding="0" width="100%">
                <tr>
                    <td class="mainmenu2"><img src="images/spacer.gif" height="1" width="1"></td>
                </tr>
                <tr>
                    <td background="[var.ROOT_IMG_DIR]/back-menu.gif">
                    <table border="0" cellspacing="0" cellpadding="0" width="100%">
                        <tr>
                            <td>
                                <script language="JavaScript" type="text/JavaScript">menu.Build();</script>
                          </td>
                          <td class="head-login">Login as [var.USERPROFILE_NAME]</td>
                        </tr>
                      </table>
                    </td>
                </tr>

                <tr>
                    <td class="mainmenu2"><img src="images/spacer.gif" height="1" width="1"></td>
                </tr>
            </table>
            </td>
        </tr>
        <tr height="100%">
            <td>
            <table border="0" cellspacing="0" cellpadding="0" width="100%" height="100%">
                <tr valign="top">
                    <td width="100%">
                        <table border="0" cellspacing="0" cellpadding="0" width="100%">
                            <tr>
                                <td class="head-path"></td>
                                <td class="corner-date">[var.CORNER_DATE]</td>
                            </tr>
                        </table>
                        <table border="0" cellspacing="0" cellpadding="5" width="100%">
                            <tr>
                                <td class="FacetHeaderContent" >.:[var.SubHeaderTitle]:.</td>
                            </tr>
                        </table>

                        <table border="0" cellspacing="0" cellpadding="5" width="100%">
                        <form method="post" action="[var.FormAction]" name="[var.HTMLFormName]" >
                            <tr>
                                <td class="contentTitleOperational">
                                Menu
                                </td>
                            </tr>
                            <tr>
                                <td class="contentOperational">
                                <table cellspacing="2" cellpadding="0">
                                 <tr>
                                   <td>
                                    <input type="button" name="Action" value="<<Back" class="button" onClick="self.location.replace('[sys.script_name]')">
                                   </td>
                                   <td>
									 <input name="FormAction" type="submit" value="Save" class="button" ONCLICK="return checkVerification();">
								   </td>
                                   <td>
                                     <input type="button" name="Action" value="Done" class="button" onClick="self.location.replace('[var.SERVER_URL]')">
                                   </td>
                                   <td><!--[tbs_check;block=td;if [var.USER_CANPRINT]=1]-->
                                    <input type="button" name="Action" value="Print to PDF" class="button" onClick="OpenPDF('[sys.script_name]?PageMode=PDF&[var.PRIMARY_KEY]=[var.PRIMARY_VALUE]')">
                                   </td>
                                   <!--
                                   <td>
									 <input type="button" name="Action" value="Print to PDF" class="button" onClick="return SubmitPDF();">
								   </td>
								   -->
                                 </tr>
                                </table>
                                </td>
                            </tr>
                            <tr>
                                <td class="contentOperational">
                         
                         <!--TABLE MASTER-->       
						 <table width="1100" border="0">
							 <tr>
							 <!--ROW TABLE MASTER--> 
								 <td width="45%" valign="top"> 
                                 <!--COL TABLE MASTER-->  
                                  
                        <!-- FORM SECTION -->
                        
                        <table border="0" cellspacing="0" cellpadding="0" width="68%">
							<tr>
							   <td><input type="button" name="Action" value="Form Upload File" class="button" onClick="self.location.replace('[sys.script_name]?jo_id=[var.jo_id]&PageMode=uploadFile')"></td>
							</tr>
                        </table>
                        
                        <table border="0" cellspacing="0" cellpadding="0" width="100%">

                        
                              <tr>
                                <td class="fieldCaption" align="right">Job Order Code</td>
                                <td class="fieldCaption">:</td>
                                <td class="fieldCaption">                                    
                                     <span style="font-weight:bold;font-size:13px;">[headblv.jo_code;noerr]</span>
                                     <input type="hidden" name="jo_id" value="[var.jo_id;noerr]"> 
                                </td>
                                <!--<td class="fieldCaption"><input type="text" name="(bln.project_id)" value="[headblv.project_id;noerr]" maxlength="255" size="10" onblur='[var.InitFunction]' onkeyup="this.value=this.value.toUpperCase()" class="input" [tbs_check;if [var.FormMode]=Edit;then 'readonly';else '']></td>-->
                              </tr>
                              <tr>
                                <td class="fieldCaption" align="right">Shipment No.</td>
                                <td class="fieldCaption">:</td>
                                <td class="fieldCaption">                                    
                                     <input type="text" name="shipment_no" value="[headblv2.shipment_no;noerr]" maxlength="255" size="31" class="input" >									 
                                </td>
                                
                              </tr>
                              <tr>
                                <td class="fieldCaption" align="right">Project Name</td>
                                <td class="fieldCaption">:</td>
                                <td class="fieldCaption">
                                    [headblv.project_name;noerr]
                                </td>
                              </tr>
                              <tr>
                                <td class="fieldCaption" align="right">Customer</td>
                                <td class="fieldCaption">:</td>
                                <td class="fieldCaption">
                                   [headblv.CUNAME;noerr]
                                </td>
                              </tr>
                              <tr>
                                <td class="fieldCaption" align="right">Doc. Receive From</td>
                                <td class="fieldCaption">:</td>
                                <td class="fieldCaption">                                   
									<input type="text" name="receive_from" value="[headblv2.receive_from;noerr]" maxlength="255" size="31" class="input" >
                                </td>
                              </tr>
                              
                              <tr>
                                <td class="fieldCaption" align="right">Vessel / Flight</td>
                                <td class="fieldCaption">:</td>
                                <td class="fieldCaption">
                                
								   <table width="100%" border="0">
									   <tr>
										   <td width="50%">[headblv.vessel;noerr]</td>
										   <td width="50%">Voy : <input type="text" name="voy" value="[headblv2.voy;noerr]" maxlength="255" size="12" class="input" ></td>
									   </tr>
								   </table>                                    
                                     
                                </td>                                
                              </tr>
                              <tr>
                                <td class="fieldCaption" align="right">Port Of Loading</td>
                                <td class="fieldCaption">:</td>
                                <td class="fieldCaption">
                                    <input type="text" name="port_loading" value="[headblv2.port_loading;noerr]" maxlength="255" size="31" class="input" >
                                </td>
                              </tr>
                              <tr>
                                <td class="fieldCaption" align="right">Discharges Port</td>
                                <td class="fieldCaption">:</td>
                                <td class="fieldCaption">                                    
                                    <input type="text" name="charges_port" value="[headblv2.charges_port;noerr]" maxlength="255" size="31" class="input" >
                                </td>
                                
                              </tr>
                              <tr>
                                <td class="fieldCaption" align="right">Delivery Site</td>
                                <td class="fieldCaption">:</td>
                                <td class="fieldCaption">                                    
                                   <input type="text" name="delivery_site" value="[headblv2.delivery_site;noerr]" maxlength="255" size="31" class="input" >
                                </td>                                
                              </tr>
                              <tr>
                                <td class="fieldCaption" align="right">BC.1.1 No.</td>
                                <td class="fieldCaption">:</td>
                                <td class="fieldCaption">                                    
                                   <input type="text" name="bcii_no" value="[headblv2.bcii_no;noerr]" maxlength="255" size="31" class="input" >
                                </td>                                
                              </tr>
                              <tr>
                                <td class="fieldCaption" align="right">No. Aju PIB</td>
                                <td class="fieldCaption">:</td>
                                <td class="fieldCaption">                                    
                                   <input type="text" name="no_aju_pib" value="[headblv2.no_aju_pib;noerr]" maxlength="255" size="31" class="input" >
                                </td>                                
                              </tr>
                              
                                                            

                         </table>
                         <!-- END FORM SECTION -->
                         
                         
                         <!--END COL TABLE MASTER-->  
                         </td>
                         
                         <!--COL TABLE MASTER-->  
                         <td valign="top">
                         
                               <table border="0" cellspacing="0" cellpadding="0" align="left">
                                  
                                  <tr>
									<td class="fieldCaption" align="right">Pelaksana CC</td>
									<td class="fieldCaption">:</td>
									<td class="fieldCaption">
									  <!-- <input type="text" name="laks_cc" value="[headblv2.laks_cc;noerr]" maxlength="255" size="31" class="input" >-->
									  <select name="receivedList" class="input" onchange="GetStaff(this.value,'pelaksanaCC');">
										 <option value="" selected>Select Value</option>
										 <option value="2">Staff</option>
									  </select>

									  <input type="hidden" name="laks_cc" value="[headblv2.laks_cc;noerr]" maxlength="255" size="15" class="input">
									  <input type="text" name="laks_name" value="[headblv2.laks_name;noerr]" maxlength="255" size="15" class="input" readonly>
									</td>
								  
								  </tr>
								
								  
								  <tr>
									<td class="fieldCaption" align="right">ETD</td>
									<td class="fieldCaption">:</td>
									<td class="fieldCaption">
									   <input type="text" name="etd"  maxlength="255" size="15" class="input" value="[tbs_check;if [var.FormMode]=Edit;then [headblv2.etd;frm='dd/mm/yyyy';noerr]; else [sys.now;frm='dd/mm/yyyy']]" maxlength="255" size="10" class="input" >
									   <a href="javascript:void(0)" onclick="gfPop.fPopCalendar([var.HTMLFormName].etd);return false;" hidefocus>
									   <img name="popcal" align="absMiddle" src="[var.ROOT_DIR]js/Calendar/pop/calbtn.gif" width="34" height="22" border="0" alt=""></a>
									</td>
								  </tr>
								  <tr>
									<td class="fieldCaption" align="right">ETA</td>
									<td class="fieldCaption">:</td>
									<td class="fieldCaption">
									   <input type="text" name="eta"  maxlength="255" size="15" class="input" value="[tbs_check;if [var.FormMode]=Edit;then [headblv2.eta;frm='dd/mm/yyyy';noerr]; else [sys.now;frm='dd/mm/yyyy']]" maxlength="255" size="10" class="input" >
									   <a href="javascript:void(0)" onclick="gfPop.fPopCalendar([var.HTMLFormName].eta);return false;" hidefocus>
									   <img name="popcal" align="absMiddle" src="[var.ROOT_DIR]js/Calendar/pop/calbtn.gif" width="34" height="22" border="0" alt=""></a>
									</td>
								  </tr>
								  <tr>
									<td class="fieldCaption" align="right">GDG</td>
									<td class="fieldCaption">:</td>
									<td class="fieldCaption">
									   <input type="text" name="gdg" value="[headblv2.gdg;noerr]" maxlength="255" size="31" class="input" >
									</td>
								  </tr>
								  <tr>
									<td class="fieldCaption" align="right">LARTAS 1</td>
									<td class="fieldCaption">:</td>
									<td class="fieldCaption">
									   <input type="text" name="lartas_1" value="[headblv2.lartas_1;noerr]" maxlength="255" size="31" class="input" >
									</td>
								  </tr>
								  <tr>
									<td class="fieldCaption" align="right">LARTAS 2</td>
									<td class="fieldCaption">:</td>
									<td class="fieldCaption">
									   <input type="text" name="lartas_2" value="[headblv2.lartas_2;noerr]" maxlength="255" size="31" class="input" >
									</td>
								  </tr>
								  <tr>
									<td class="fieldCaption" align="right">LARTAS 3</td>
									<td class="fieldCaption">:</td>
									<td class="fieldCaption">
									   <input type="text" name="lartas_3" value="[headblv2.lartas_3;noerr]" maxlength="255" size="31" class="input" >
									</td>
								  </tr>
								  <tr>
									<td class="fieldCaption" align="right">LARTAS 4</td>
									<td class="fieldCaption">:</td>
									<td class="fieldCaption">
									   <input type="text" name="lartas_4" value="[headblv2.lartas_4;noerr]" maxlength="255" size="31" class="input" >
									</td>
								  </tr>
								  <tr>
									<td class="fieldCaption" align="right">LARTAS 5</td>
									<td class="fieldCaption">:</td>
									<td class="fieldCaption">
									   <input type="text" name="lartas_5" value="[headblv2.lartas_5;noerr]" maxlength="255" size="31" class="input" >
									</td>
								  </tr>
								  
								  
								  
                               </table>                   
                         
                         
                          </td>
                          <!--END COL TABLE MASTER-->  
                                
                          
                          </tr>
                          <!--END ROW TABLE MASTER-->        
                            
                        </table>
                        <!--END TABLE MASTER-->
                        



                        <!--TABLE MASTER 2-->       
						 <table width="1100" border="0">
							 <tr>
							 <!--ROW TABLE MASTER 2--> 
								 <td valign="top"> 
                                 <!--COL TABLE MASTER 2-->  
                                  
                        <!-- FORM SECTION -->
                        <table width="980" border="0" cellspacing="1" cellpadding="3" class="FacetFormTABLEOperational">

                              <tr>
                                <td class="FacetDataTDOperational" align="center" width="245">
                                  40 x [var.container_40] CONT <br/>
                                  20 x [var.container_20] CONT
                                </td>
                                <td class="FacetDataTDOperational" align="center" width="245">
                                  [var.cargo_jumlah] pkgs
                                </td>
                                <td class="FacetDataTDOperational" align="center" width="245">
                                  [var.cargo_berat] kgs
                                </td>
                                <td class="FacetDataTDOperational" align="center">
                                  [var.cargo_volume] cbm
                                </td>
                                
                              </tr>
                              
                         </table>
                         
                         <br>
                         
                         <table width="980" border="0" cellspacing="1" cellpadding="3" class="FacetFormTABLEOperational">

                              <tr>
                                
                                <td class="FacetDataTDOperational" align="left" width="245">
                                  <h3>UPLOADED FILE</h3> 
                                  [var.uploadList;htmlconv=no;]
                                </td>
                                                                
                              </tr>
                              
                         </table>
                         
                         
                         <!-- END FORM SECTION -->
                         
                         
                         <!--END COL TABLE MASTER 2-->  
                         </td>
                         
                          
                          </tr>
                          <!--END ROW TABLE MASTER 2-->        
                            
                        </table>
                        <!--END TABLE MASTER 2-->




                                              
                        <hr size="1" color="DFDFDF">
                        
                         <!--TABLE MASTER 3-->       
						 <table width="1100" border="0">
							 <tr>
							 <!--ROW TABLE MASTER 3--> 
								 <td valign="top"> 
                                 <!--COL TABLE MASTER 3-->  
                                 
                        
                        <!--GRID-->  
                        
                        <table border="0" width="1000" cellpadding="3" cellspacing="1" class="FacetFormTABLEOperational" align="left" style="margin-bottom:30px;">

                                <tr>
                                        <td nowrap class="FacetColumnTDOperational" align="left" width="580">
                                           &nbsp;
										</td>
                                        
                                        <td nowrap class="FacetColumnTDOperational" align="center" colspan="2">
                                          DATE OF RECEIVED
                                        </td>
                                        
                                        
                                </tr>
                                
                                <tr>
                                        <td nowrap class="FacetColumnTDOperational" align="left">
                                           &nbsp;
										</td>
                                        
                                        <td nowrap class="FacetColumnTDOperational" align="center" width="200">
                                          ORIGINAL
                                        </td>
                                        
                                        <td nowrap class="FacetColumnTDOperational" align="center">
                                          COPY
                                        </td>
                                        
                                </tr>
                                
                                
                                <tr>
                                        <td nowrap class="FacetDataTDOperational" align="left">
                                           
										   <table width="100%">
											   <tr>
												   <td width="180" align="left">HAWE / MAWB NO. </td>
												   <td width="20" align="center">:</td>
												   <td align="left">
												      <input type="text" name="hawe_no" value="[headblv2.hawe_no;noerr]" maxlength="255" size="40" class="input" >
												   </td>
											   </tr>
										   </table>
               						
										</td>
                                        
                                        <td nowrap class="FacetDataTDOperational" align="center">
                                          <input type="text" name="hawe_no_ori"  maxlength="255" size="15" class="input" value="[tbs_check;if [var.FormMode]=Edit;then [headblv2.hawe_no_ori;frm='dd/mm/yyyy';noerr]; else '']" maxlength="255" size="10" class="input" >
                                          <a href="javascript:void(0)" onclick="gfPop.fPopCalendar([var.HTMLFormName].hawe_no_ori);return false;" hidefocus>
                                          <img name="popcal" align="absMiddle" src="[var.ROOT_DIR]js/Calendar/pop/calbtn.gif" width="34" height="22" border="0" alt=""></a>
                                        </td>
                                        
                                        <td nowrap class="FacetDataTDOperational" align="center">
                                          <input type="text" name="hawe_no_cpy"  maxlength="255" size="15" class="input" value="[tbs_check;if [var.FormMode]=Edit;then [headblv2.hawe_no_cpy;frm='dd/mm/yyyy';noerr]; else '']" maxlength="255" size="10" class="input" >
                                          <a href="javascript:void(0)" onclick="gfPop.fPopCalendar([var.HTMLFormName].hawe_no_cpy);return false;" hidefocus>
                                          <img name="popcal" align="absMiddle" src="[var.ROOT_DIR]js/Calendar/pop/calbtn.gif" width="34" height="22" border="0" alt=""></a>
                                        </td>
                                        
                                </tr>
                                
                                
                                <tr>
                                        <td nowrap class="FacetDataTDOperational" align="left">
                                           
										   <table width="100%">
											   <tr>
												   <td width="180" align="left">BL NO. </td>
												   <td width="20" align="center">:</td>
												   <td align="left">
												      <input type="text" name="bl_no" value="[headblv.bl_no;noerr]" maxlength="255" size="40" class="input" >
												   </td>
											   </tr>
										   </table>
               						
										</td>
                                        
                                        <td nowrap class="FacetDataTDOperational" align="center">
                                          <input type="text" name="bl_no_ori"  maxlength="255" size="15" class="input" value="[tbs_check;if [var.FormMode]=Edit;then [headblv2.bl_no_ori;frm='dd/mm/yyyy';noerr]; else '']" maxlength="255" size="10" class="input" >
                                          <a href="javascript:void(0)" onclick="gfPop.fPopCalendar([var.HTMLFormName].bl_no_ori);return false;" hidefocus>
                                          <img name="popcal" align="absMiddle" src="[var.ROOT_DIR]js/Calendar/pop/calbtn.gif" width="34" height="22" border="0" alt=""></a>
                                        </td>
                                        
                                        <td nowrap class="FacetDataTDOperational" align="center">
                                          <input type="text" name="bl_no_cpy"  maxlength="255" size="15" class="input" value="[tbs_check;if [var.FormMode]=Edit;then [headblv2.bl_no_cpy;frm='dd/mm/yyyy';noerr]; else '']" maxlength="255" size="10" class="input" >
                                          <a href="javascript:void(0)" onclick="gfPop.fPopCalendar([var.HTMLFormName].bl_no_cpy);return false;" hidefocus>
                                          <img name="popcal" align="absMiddle" src="[var.ROOT_DIR]js/Calendar/pop/calbtn.gif" width="34" height="22" border="0" alt=""></a>
                                        </td>
                                        
                                </tr>
                                
                                
                                <tr>
                                        <td nowrap class="FacetDataTDOperational" align="left">
                                           
										   <table width="100%">
											   <tr>
												   <td width="180" align="left">INVOICE NO. </td>
												   <td width="20" align="center">:</td>
												   <td align="left">
												      <input type="text" name="invoice_no" value="[headblv.invoice_no;noerr]" maxlength="255" size="40" class="input" >
												   </td>
											   </tr>
										   </table>
               						
										</td>
                                        
                                        <td nowrap class="FacetDataTDOperational" align="center">
                                          <input type="text" name="invoice_no_ori"  maxlength="255" size="15" class="input" value="[tbs_check;if [var.FormMode]=Edit;then [headblv2.invoice_no_ori;frm='dd/mm/yyyy';noerr]; else '']" maxlength="255" size="10" class="input" >
                                          <a href="javascript:void(0)" onclick="gfPop.fPopCalendar([var.HTMLFormName].invoice_no_ori);return false;" hidefocus>
                                          <img name="popcal" align="absMiddle" src="[var.ROOT_DIR]js/Calendar/pop/calbtn.gif" width="34" height="22" border="0" alt=""></a>
                                        </td>
                                        
                                        <td nowrap class="FacetDataTDOperational" align="center">
                                          <input type="text" name="invoice_no_cpy"  maxlength="255" size="15" class="input" value="[tbs_check;if [var.FormMode]=Edit;then [headblv2.invoice_no_cpy;frm='dd/mm/yyyy';noerr]; else '']" maxlength="255" size="10" class="input" >
                                          <a href="javascript:void(0)" onclick="gfPop.fPopCalendar([var.HTMLFormName].invoice_no_cpy);return false;" hidefocus>
                                          <img name="popcal" align="absMiddle" src="[var.ROOT_DIR]js/Calendar/pop/calbtn.gif" width="34" height="22" border="0" alt=""></a> 
                                        </td>
                                        
                                </tr>
                                
                                <tr>
                                        <td nowrap class="FacetDataTDOperational" align="left">
                                           
										   <table width="100%">
											   <tr>
												   <td width="180" align="left">PACKING LIST </td>
												   <td width="20" align="center">:</td>
												   <td align="left">
												      <input type="text" name="packing_list" value="[headblv2.packing_list;noerr]" maxlength="255" size="40" class="input" >
												   </td>
											   </tr>
										   </table>
               						
										</td>
                                        
                                        <td nowrap class="FacetDataTDOperational" align="center">
                                           <input type="text" name="packing_list_ori"  maxlength="255" size="15" class="input" value="[tbs_check;if [var.FormMode]=Edit;then [headblv2.packing_list_ori;frm='dd/mm/yyyy';noerr]; else '']" maxlength="255" size="10" class="input" >
                                           <a href="javascript:void(0)" onclick="gfPop.fPopCalendar([var.HTMLFormName].packing_list_ori);return false;" hidefocus>
                                           <img name="popcal" align="absMiddle" src="[var.ROOT_DIR]js/Calendar/pop/calbtn.gif" width="34" height="22" border="0" alt=""></a> 
                                        </td>
                                        
                                        <td nowrap class="FacetDataTDOperational" align="center">
											<input type="text" name="packing_list_cpy"  maxlength="255" size="15" class="input" value="[tbs_check;if [var.FormMode]=Edit;then [headblv2.packing_list_cpy;frm='dd/mm/yyyy';noerr]; else '']" maxlength="255" size="10" class="input" >
                                            <a href="javascript:void(0)" onclick="gfPop.fPopCalendar([var.HTMLFormName].packing_list_cpy);return false;" hidefocus>
                                            <img name="popcal" align="absMiddle" src="[var.ROOT_DIR]js/Calendar/pop/calbtn.gif" width="34" height="22" border="0" alt=""></a> 	
                                        </td>
                                        
                                </tr>
                                
                                <tr>
                                        <td nowrap class="FacetDataTDOperational" align="left">
                                           
										   <table width="100%">
											   <tr>
												   <td width="180" align="left">CERTIFICATE OF ORIGIN </td>
												   <td width="20" align="center">:</td>
												   <td align="left">
												      <input type="text" name="cert" value="[headblv2.cert;noerr]" maxlength="255" size="40" class="input" >
												   </td>
											   </tr>
										   </table>
               						
										</td>
                                        
                                        <td nowrap class="FacetDataTDOperational" align="center">
                                           <input type="text" name="cert_ori"  maxlength="255" size="15" class="input" value="[tbs_check;if [var.FormMode]=Edit;then [headblv2.cert_ori;frm='dd/mm/yyyy';noerr]; else '']" maxlength="255" size="10" class="input" >
                                           <a href="javascript:void(0)" onclick="gfPop.fPopCalendar([var.HTMLFormName].cert_ori);return false;" hidefocus>
                                           <img name="popcal" align="absMiddle" src="[var.ROOT_DIR]js/Calendar/pop/calbtn.gif" width="34" height="22" border="0" alt=""></a> 	
                                        </td>
                                        
                                        <td nowrap class="FacetDataTDOperational" align="center">
											<input type="text" name="cert_cpy"  maxlength="255" size="15" class="input" value="[tbs_check;if [var.FormMode]=Edit;then [headblv2.cert_cpy;frm='dd/mm/yyyy';noerr]; else '']" maxlength="255" size="10" class="input" >
                                            <a href="javascript:void(0)" onclick="gfPop.fPopCalendar([var.HTMLFormName].cert_cpy);return false;" hidefocus>
                                            <img name="popcal" align="absMiddle" src="[var.ROOT_DIR]js/Calendar/pop/calbtn.gif" width="34" height="22" border="0" alt=""></a> 	
                                        </td>
                                        
                                </tr>
                                
                                <tr>
                                        <td nowrap class="FacetDataTDOperational" align="left">
                                           
										   <table width="100%">
											   <tr>
												   <td width="180" align="left">INSURANCE </td>
												   <td width="20" align="center">:</td>
												   <td align="left">
												     <input type="text" name="insurance" value="[headblv2.insurance;noerr]" maxlength="255" size="40" class="input" >
												   </td>
											   </tr>
										   </table>
               						
										</td>
                                        
                                        <td nowrap class="FacetDataTDOperational" align="center">
											<input type="text" name="insurance_ori"  maxlength="255" size="15" class="input" value="[tbs_check;if [var.FormMode]=Edit;then [headblv2.insurance_ori;frm='dd/mm/yyyy';noerr]; else '']" maxlength="255" size="10" class="input" >
                                            <a href="javascript:void(0)" onclick="gfPop.fPopCalendar([var.HTMLFormName].insurance_ori);return false;" hidefocus>
                                            <img name="popcal" align="absMiddle" src="[var.ROOT_DIR]js/Calendar/pop/calbtn.gif" width="34" height="22" border="0" alt=""></a> 	
                                        </td>
                                        
                                        <td nowrap class="FacetDataTDOperational" align="center">
                                            <input type="text" name="insurance_cpy"  maxlength="255" size="15" class="input" value="[tbs_check;if [var.FormMode]=Edit;then [headblv2.insurance_cpy;frm='dd/mm/yyyy';noerr]; else '']" maxlength="255" size="10" class="input" >
                                            <a href="javascript:void(0)" onclick="gfPop.fPopCalendar([var.HTMLFormName].insurance_cpy);return false;" hidefocus>
                                            <img name="popcal" align="absMiddle" src="[var.ROOT_DIR]js/Calendar/pop/calbtn.gif" width="34" height="22" border="0" alt=""></a> 	
                                        </td>
                                        
                                </tr>
                                
                                 <tr>
                                        <td nowrap class="FacetDataTDOperational" align="left">
                                           
										   <table width="100%">
											   <tr>
												   <td width="180" align="left">LOA / SURAT DIGITAL </td>
												   <td width="20" align="center">:</td>
												   <td align="left" nowrap class="FacetDataTDOperational">
												      <input type="text" name="loa" value="[headblv2.loa;noerr]" maxlength="255" size="40" class="input" >
												   </td>
											   </tr>
										   </table>
               						
										</td>
                                        
                                        <td nowrap class="FacetDataTDOperational" align="center">
                                            <input type="text" name="loa_ori"  maxlength="255" size="15" class="input" value="[tbs_check;if [var.FormMode]=Edit;then [headblv2.loa_ori;frm='dd/mm/yyyy';noerr]; else '']" maxlength="255" size="10" class="input" >
                                            <a href="javascript:void(0)" onclick="gfPop.fPopCalendar([var.HTMLFormName].loa_ori);return false;" hidefocus>
                                            <img name="popcal" align="absMiddle" src="[var.ROOT_DIR]js/Calendar/pop/calbtn.gif" width="34" height="22" border="0" alt=""></a> 	
                                        </td>
                                        
                                        <td nowrap class="FacetDataTDOperational" align="center">
                                            <input type="text" name="loa_cpy"  maxlength="255" size="15" class="input" value="[tbs_check;if [var.FormMode]=Edit;then [headblv2.loa_cpy;frm='dd/mm/yyyy';noerr]; else '']" maxlength="255" size="10" class="input" >
                                            <a href="javascript:void(0)" onclick="gfPop.fPopCalendar([var.HTMLFormName].loa_cpy);return false;" hidefocus>
                                            <img name="popcal" align="absMiddle" src="[var.ROOT_DIR]js/Calendar/pop/calbtn.gif" width="34" height="22" border="0" alt=""></a> 	
                                        </td>
                                        
                                </tr>
                                
                                <tr>
                                        <td nowrap class="FacetDataTDOperational" align="left">
                                           
										   <table width="100%">
											   <tr>
												   <td width="180" align="left">STATEMENT CONTR. </td>
												   <td width="20" align="center">:</td>
												   <td align="left" nowrap class="FacetDataTDOperational">
												      <input type="text" name="stat_con" value="[headblv2.stat_con;noerr]" maxlength="255" size="40" class="input" >
												   </td>
											   </tr>
										   </table>
               						
										</td>
                                        
                                        <td nowrap class="FacetDataTDOperational" align="center">
                                            <input type="text" name="stat_con_ori"  maxlength="255" size="15" class="input" value="[tbs_check;if [var.FormMode]=Edit;then [headblv2.stat_con_ori;frm='dd/mm/yyyy';noerr]; else '']" maxlength="255" size="10" class="input" >
                                            <a href="javascript:void(0)" onclick="gfPop.fPopCalendar([var.HTMLFormName].stat_con_ori);return false;" hidefocus>
                                            <img name="popcal" align="absMiddle" src="[var.ROOT_DIR]js/Calendar/pop/calbtn.gif" width="34" height="22" border="0" alt=""></a> 	
                                        </td>
                                        
                                        <td nowrap class="FacetDataTDOperational" align="center">
                                            <input type="text" name="stat_con_cpy"  maxlength="255" size="15" class="input" value="[tbs_check;if [var.FormMode]=Edit;then [headblv2.stat_con_cpy;frm='dd/mm/yyyy';noerr]; else '']" maxlength="255" size="10" class="input" >
                                            <a href="javascript:void(0)" onclick="gfPop.fPopCalendar([var.HTMLFormName].stat_con_cpy);return false;" hidefocus>
                                            <img name="popcal" align="absMiddle" src="[var.ROOT_DIR]js/Calendar/pop/calbtn.gif" width="34" height="22" border="0" alt=""></a> 	
                                        </td>
                                        
                                </tr>
                                
                                
                                <tr>
                                        <td nowrap class="FacetDataTDOperational" align="left">
                                           
										   <table width="100%">
											   <tr>
												   <td width="180" align="left">RECOMMENDATION LOA </td>
												   <td width="20" align="center">:</td>
												   <td align="left" nowrap class="FacetDataTDOperational">
												      <input type="text" name="recom_loa" value="[headblv2.recom_loa;noerr]" maxlength="255" size="40" class="input" >
												   </td>
											   </tr>
										   </table>
               						
										</td>
                                        
                                        <td nowrap class="FacetDataTDOperational" align="center">
                                            <input type="text" name="recom_loa_ori"  maxlength="255" size="15" class="input" value="[tbs_check;if [var.FormMode]=Edit;then [headblv2.recom_loa_ori;frm='dd/mm/yyyy';noerr]; else '']" maxlength="255" size="10" class="input" >
                                            <a href="javascript:void(0)" onclick="gfPop.fPopCalendar([var.HTMLFormName].recom_loa_ori);return false;" hidefocus>
                                            <img name="popcal" align="absMiddle" src="[var.ROOT_DIR]js/Calendar/pop/calbtn.gif" width="34" height="22" border="0" alt=""></a> 	
                                        </td>
                                        
                                        <td nowrap class="FacetDataTDOperational" align="center">
                                            <input type="text" name="recom_loa_cpy"  maxlength="255" size="15" class="input" value="[tbs_check;if [var.FormMode]=Edit;then [headblv2.recom_loa_cpy;frm='dd/mm/yyyy';noerr]; else '']" maxlength="255" size="10" class="input" >
                                            <a href="javascript:void(0)" onclick="gfPop.fPopCalendar([var.HTMLFormName].recom_loa_cpy);return false;" hidefocus>
                                            <img name="popcal" align="absMiddle" src="[var.ROOT_DIR]js/Calendar/pop/calbtn.gif" width="34" height="22" border="0" alt=""></a> 	
                                        </td>
                                        
                                </tr>
                                
                                
                                <tr>
                                        <td nowrap class="FacetDataTDOperational" align="left">
                                           
										   <table width="100%">
											   <tr>
												   <td width="180" align="left">RECOMMENDATION LARTAS </td>
												   <td width="20" align="center">:</td>
												   <td align="left" nowrap class="FacetDataTDOperational">
												      <input type="text" name="recom_lartas" value="[headblv2.recom_lartas;noerr]" maxlength="255" size="40" class="input" >
												   </td>
											   </tr>
										   </table>
               						
										</td>
                                        
                                        <td nowrap class="FacetDataTDOperational" align="center">
                                            <input type="text" name="recom_lartas_ori"  maxlength="255" size="15" class="input" value="[tbs_check;if [var.FormMode]=Edit;then [headblv2.recom_lartas_ori;frm='dd/mm/yyyy';noerr]; else '']" maxlength="255" size="10" class="input" >
                                            <a href="javascript:void(0)" onclick="gfPop.fPopCalendar([var.HTMLFormName].recom_lartas_ori);return false;" hidefocus>
                                            <img name="popcal" align="absMiddle" src="[var.ROOT_DIR]js/Calendar/pop/calbtn.gif" width="34" height="22" border="0" alt=""></a> 	
                                        </td>
                                        
                                        <td nowrap class="FacetDataTDOperational" align="center">
                                            <input type="text" name="recom_lartas_cpy"  maxlength="255" size="15" class="input" value="[tbs_check;if [var.FormMode]=Edit;then [headblv2.recom_lartas_cpy;frm='dd/mm/yyyy';noerr]; else '']" maxlength="255" size="10" class="input" >
                                            <a href="javascript:void(0)" onclick="gfPop.fPopCalendar([var.HTMLFormName].recom_lartas_cpy);return false;" hidefocus>
                                            <img name="popcal" align="absMiddle" src="[var.ROOT_DIR]js/Calendar/pop/calbtn.gif" width="34" height="22" border="0" alt=""></a> 	
                                        </td>
                                        
                                </tr>
                                
                                
                                
                        </table>
                        
                        
                        <!--END GRID-->
                        
                        
                        
                        
                        </td>
                          <!--END COL TABLE MASTER 3-->  
                                
                          
                          </tr>
                          <!--END ROW TABLE MASTER 3-->     
                          
                          
                          
                          
                          
                          
                          <tr>
							 <!--ROW TABLE MASTER 4--> 
								 <td valign="top"> 
                                 <!--COL TABLE MASTER 4-->  
                          
                          
                            <!--GRID-->

							<hr size="1" color="DFDFDF">
							<div id="spanHeader" style="height: 25px; vertical-align: top; overflow-y: noscroll;">
							<table border="0" width="70%" cellpadding="3" cellspacing="1" class="FacetFormTABLEOperational" align="left">

									<tr>
											<td nowrap class="FacetColumnTDOperational" align="center" width="35">X</td>
											<td nowrap class="FacetColumnTDOperational" align="center" width="35">No.</td>
											<td nowrap class="FacetColumnTDOperational" align="center" width="250">DATE</td>
											<td nowrap class="FacetColumnTDOperational" align="center" width="100">DAY</td>									
											<td nowrap class="FacetColumnTDOperational" align="center">REMARKS</td>
									</tr>
							</table>
							</div>




							<div id="spanDetail" class="tariffgrid" style="height: 200px; vertical-align: top; overflow: auto;">

								<!--Edited by van Smith-->

								<table border="0" width="70%" cellpadding="3" cellspacing="1" class="FacetFormTABLEOperational" align="left">

									<tr id="[blg.#]" style="display:[blg._display;noerr]">

											<td nowrap class="FacetDataTDOperational" align="center" width="35">
											  <input type="checkbox" name="txtCheck[blg.#]" value="[blg.act_id;noerr]" class="inputRadio">
											  <input type=hidden name="dk[blg.#]" value="D">
											</td>
											
											<td nowrap class="FacetDataTDOperational" align="right" width="35" align="right">
											  [blg.#;block=tr]. 
											  <input type="hidden" name="jo_id[blg.#]" value="[tbs_check;if [var.jo_id;noerr]!='';then [var.jo_id;noerr] ;else '']">
											</td>
																					 
											<td nowrap class="FacetDataTDOperational" align="center" width="250">
																					  
                                                <input type="text" name="date_remarks[blg.#]"  maxlength="255" size="20" id="input" class="gridBox" value="[tbs_check;if [var.FormMode]=Edit;then [blg.date_remarks;frm='dd/mm/yyyy';noerr]; else '']" maxlength="255" size="10">
                                                <a href="javascript:void(0)" onclick="gfPop.fPopCalendar([var.HTMLFormName].date_remarks[blg.#]);return false;" hidefocus>
                                                <img name="popcal" align="absMiddle" src="[var.ROOT_DIR]js/Calendar/pop/calbtn.gif" width="34" height="22" border="0" alt=""></a> 												   
											   
											</td>
											
											<td nowrap class="FacetDataTDOperational" align="center" width="100">
											   <select name="day_remarks[blg.#]" id="input">
												  <option value="">-</option>
												  <option value="Senin">Senin</option>
												  <option value="Selasa">Selasa</option>
												  <option value="Rabu">Rabu</option>
												  <option value="Kamis">Kamis</option>
												  <option value="Jumat">Jumat</option>
												  <option value="Sabtu">Sabtu</option>
												  <option value="Minggu">Minggu</option>
												  <option>[blg.day_remarks;selected;noerr]</option>
											   </select>
											</td>
											
											<td nowrap class="FacetDataTDOperational" align="center">
											   <input type="text"  name="text_remarks[blg.#]" value="[blg.text_remarks;noerr]" id="input" size="60" >
											</td>
											
										</tr>
								</table>

								<!--End Edited by van Smith-->

							</div>

							<!--END GRID-->
                          
                          
                          </td>
                          <!--END COL TABLE MASTER 4-->  
                                
                          
                          </tr>
                          <!--END ROW TABLE MASTER 4-->     
                          
                          
                             
                             
                            
                        </table>
                        <!--END TABLE MASTER 4-->
                        
                        


                        <!--BUTTON-->
                        <div id="spanButton" style="height: 35px; vertical-align: top; overflow-y: noscroll;">
                        <table border="0" width="100%" cellpadding="3" cellspacing="1" class="FacetFormTABLEOperational" align="left">
                                <tr>
                                    <td align="right" class="FacetColumnTDOperational">

                                           <table border="0" cellspacing="2" cellpadding="0">
                                                   <tr>
                                                           <td>
                                                             <input name="FormAction" type="button" value="Next Line" class="button" onClick="return (AddFormGridProject(this,'[var.HTMLFormName].date_remarks'))">
                                                           </td>
                                                           <td>
                                                                <input name="FormAction" type="button" value="Delete Line" class="button" onClick="DeleteLines()">
                                                           </td>
                                                           <td>
                                                             <input name="FormAction" type="submit" value="Save" class="button" ONCLICK="return checkVerification();">
                                                           </td>
                                                          
                                                           <td>
                                                             <input name="FormAction" type="submit" value="Cancel" class="button" onClick="self.location.replace('[sys.script_name]')">
                                                           </td>
                                                   </tr>
                                           </table>


                                    </td>
                                        </td>
                                </tr>

                        </table>
                        </div>

                        <!--END BUTTON-->


                    </td>
                </tr>

                </form>

            </table>
            </td>
        </tr>
        <tr>
            <td>
            <br>
            <table border="0" cellspacing="0" cellpadding="0" width="100%">
                <tr>
                    <td class="footer1"><img src="images/spacer.gif" height="1" width="1"></td>
                </tr>
                <!--tr>
                    <td class="footer2">Prototype Test - Web Application</td>
                </tr-->
            </table>  
            </td>
        </tr>
    </table>
 </body>


 <iframe width="174" height="189" name="gToday:normal:agenda.js" id="gToday:normal:agenda.js" src="[var.ROOT_DIR]js/Calendar/pop/ipopeng.htm" scrolling="no" frameborder="0" style="LEFT: -500px; POSITION: absolute; TOP: 0px; VISIBILITY: visible; Z-INDEX: 999"></iframe>

 <script>
 [var.InitFunction]


 SetDK(1,'K');
 document.[var.HTMLFormName].total_trans.value = SumTotal("jumlah");

 function SetDK(idx,val) {
   //eval("dk = document.[var.HTMLFormName].dk"+idx+".value;");
   //if (dk=='') eval("document.[var.HTMLFormName].dk"+idx+".value='"+val+"';");
   return true;
 }
 

function IsNumeric(sText)
{
   var ValidChars = "0123456789.,";
   var IsNumber=true;
   var Char;

 
   for (i = 0; i < sText.length && IsNumber == true; i++) 
      { 
      Char = sText.charAt(i); 
      if (ValidChars.indexOf(Char) == -1) 
         {
         IsNumber = false;
         }
      }
   return IsNumber;
   
}


function checkVerification()
{
	var checksum = 0;
	var errorMsg = "";	
	
	var laks_cc = eval("document.[var.HTMLFormName].laks_cc.value");
	
	if(laks_cc == "")
	{
		errorMsg+= "Pelaksana CC should not empty\n";
	}
	
	if(errorMsg != "")
    {
		alert(errorMsg);
		return false;
	}
	
	else
	{
		return true;
	}
	
	/*
	var project_id = eval("document.[var.HTMLFormName].project_id.value");
	var debtur = eval("document.[var.HTMLFormName].debtur.value");
	var staff_id = eval("document.[var.HTMLFormName].staff_id.value");
	var bl_no = eval("document.[var.HTMLFormName].bl_no.value");
	var invoice_no = eval("document.[var.HTMLFormName].invoice_no.value");
	var vessel = eval("document.[var.HTMLFormName].vessel.value");
	var jo_appv_status = eval("document.[var.HTMLFormName].jo_appv_status.value");
	*/
	
	/*
	if(project_id == "")
	{
		errorMsg+= "Project should not empty\n";
	}
	
	if(debtur == "")
	{
		errorMsg+= "Customer should not empty\n";
	}
	
	if(staff_id == "")
	{
		errorMsg+= "Staff should not empty\n";
	}
	
	if(bl_no == "")
	{
		errorMsg+= "BL Number should not empty\n";
	}
	
	if(invoice_no == "")
	{
		errorMsg+= "Invoice Number should not empty\n";
	}
	
	if(vessel == "")
	{
		errorMsg+= "Vessel should not empty\n";
	}
	
	if(jo_appv_status == "")
	{
		errorMsg+= "Approval should not empty\n";
	}
	
	
	$(".gridBox:visible").each(function(n) {
        lastname = this.name;
        lastname = lastname.substring(3);    
        lastname = parseInt(lastname);
        
        var services_id = eval("document.[var.HTMLFormName].services_id"+lastname+".value");
        var qty = eval("document.[var.HTMLFormName].qty"+lastname+".value");
        var unit = eval("document.[var.HTMLFormName].unit"+lastname+".value");
        var curr = eval("document.[var.HTMLFormName].curr"+lastname+".value");
        var rate = eval("document.[var.HTMLFormName].rate"+lastname+".value");
        var tax_rate = eval("document.[var.HTMLFormName].tax_rate"+lastname+".value");
        var payment_status_id = eval("document.[var.HTMLFormName].payment_status_id"+lastname+".value");
        
        if((services_id != "") && (qty != "") && (unit != "") && (curr != "") && (rate != "") && (tax_rate != "") && (payment_status_id != ""))
        {    
          checksum++;
        }
                
    });
    
    if(checksum < 1)
    {
		errorMsg+= "Your grid is not complete\n";
	}
    
    if(errorMsg != "")
    {
		alert(errorMsg);
		return false;
	}
	
	else
	{
		return true;
	}
    */
    
   	
}


 function DeleteLines(){
    $("input[name^=txtCheck]").each(
      function(){
        if($(this).attr('checked')) {
            //alert($(this).val());
            var num = String($(this).attr('name')).replace('txtCheck','');
            //alert('num: ' + num);
            $('tr#'+num).remove();
        }
      }
    );
 }
 
 
 function DeleteLinesCargo(){
    $("input[name^=txtCheckCargo]").each(
      function(){
        if($(this).attr('checked')) {
            //alert($(this).val());
            var num = String($(this).attr('name')).replace('txtCheckCargo','');
            //alert('num: ' + num);
            $('tr#rowCargo'+num).remove();
        }
      }
    );
 }


function SubmitPDF() {	
	  str_url = '[sys.script_name]?PageMode=PDF&jo_id=[var.jo_id]';
	  OpenPDF(str_url);
	  return false;	
}


 function GetStaff(val,need_another_var) {
            newwin = window.open("ais_transaction_stafflist.php?FormName=[var.HTMLFormName]&need_another_var="+need_another_var,"toolcalc","height=400,width=640,noscroll,resizable");
 }


 function GetServices(val,no_urut) {
      newwin = window.open("ais_transaction_serviceslist.php?FormName=[var.HTMLFormName]&no_urut="+no_urut,"toolcalc","height=400,width=640,noscroll,resizable");
 }
 
  function GetReceived(val,no_urut) {
      newwin = window.open("ais_transaction_custlist_2.php?FormName=[var.HTMLFormName]&no_urut="+no_urut,"toolcalc","height=400,width=640,noscroll,resizable");
 }



 function OpenPrincipal (number) {
        newwin = window.open("ais_transaction_receipt_entry.php?PageMode=Page2&FormName=[var.HTMLFormName]&Number="+number,"vessel","height=105,width=300,noscroll,noresizable");
 }

 function OpenRemark (number) {
        newwin = window.open("ais_transaction_dn.php?PageMode=Remark&FormName=[var.HTMLFormName]&Number="+number,"remarks","height=105,width=300,noscroll,noresizable");
 }

 function OpenPrint (number) {
        newwin = window.open("ais_transaction_dn.php?PageMode=PrintPreview&nobkt="+number,"print","height=650,width=600,noscroll,noresizable");
 }


 function GetSkada() {
         skada1 = document.[var.HTMLFormName].thbl.value;
         if (skada1.length) LoadRPC ("iLoader", "[var.FileName]", "thbl="+document.[var.HTMLFormName].thbl.value);
 }


 function GetTotal () {
         document.[var.HTMLFormName].total_trans.value = SumTotal("jumlah");
 }


 /* added by dyah <dyah.mahrani@gmail.com>
 * 23 juli 2009
 * desc: COA filter based on group <payable/receivable>
 * */


 function getCashType(){
    var frm = document.[var.HTMLFormName].cash_type;
    return frm.options[frm.selectedIndex].value;
 }

var reccount = 1;
//if (reccount==0) reccount=1; else reccount=5;
var last;

function AddFormGridProject (cname,firstelemen) {
	var lastname ="";
    if (VerifyGridProject(reccount)==false) {
        return false
    }

    $(".gridBox:visible").each(function(n) {
        n = n+1;
        reccount = n;
        lastname = this.name;
    });
    
    lastname = lastname.substring(12);
    
    lastname = parseInt(lastname)+1;
    
    //reccount = 5;
    reccount = parseInt(reccount)+1;

    //alert("reccount: " + reccount);

    if (reccount>=100) {
        cname.disabled = true;
    }

    var objrow = document.getElementById(lastname);

    if (objrow.style.display == 'none') {
        objrow.style.display = '';
    }

    eval(firstelemen+''+lastname+'.focus()');

    return false;
}







function VerifyGridProject (x) {
    err_message = '';
    last_focus =0;
    if (err_message.length) {//alert(err_message);
    return false} else return true
}

function VerifyGridCargo (x) {
    err_message = '';
    last_focus =0;
    if (err_message.length) {//alert(err_message);
    return false} else return true
}

function CheckAllGrid(firstelemen) {
        for (n=1;n<reccount;n++) {
                if (!VerifyGrid(n)) return false;
        }
        eval('fl = document.'+firstelemen+reccount+'.value');
        if (fl.length)
                if (!VerifyGrid(reccount)) return false;
return true;}

 function GetReceived(val) {

     var getProjectValue = document.getElementById('projectname').value;

    //alert(getProjectValue);

     switch (val){
        case "1":
            newwin = window.open("ais_transaction_custlist_2.php?FormName=[var.HTMLFormName]&SendToBack=1&PageMode=Test&ProjectId=" + getProjectValue ,"toolcalc","height=400,width=640,noscroll,resizable");
            break;
     }
 }

 </script>


</html>
